[index]

Location (Loc) Property

Syntax

set the loc[ation] of <object> to <x, y>
Applies to all objects, backgrounds, cards, card windows, message box, toolbar

Description

The location property determines the position of an object on the screen. The object's position is measured in pixels and is expressed as an x, y screen coordinate where x and y are positive integers representing pixels. For card windows and the toolbar, the coordinates correspond to the upper left corner of the object relative to the upper left corner of the screen. For all other objects, these coordinates correspond to the center of the object relative to the upper left corner of the card.

Notes

If you want to move a card on the screen, set the location property for the card window of the current stack, not the location of the card.

Examples

To change the location of the toolbar, type the following lines in the Message Box and press Enter after each: get the location of toolbar add 100 to item 2 of it set the location of toolbar to it To return the toolbox to its original position, choose Reset Toolbar from the Navigation menu. Some additional examples follow: set loc set loc put the of button "Total" to "100,150" of bitmap id 3 to 100,250 loc of the toolbar loc of card window to 50, 100
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.